import { Swipe, SwipeItem } from 'vant'
const arr = [
  Swipe, SwipeItem
]

const install = function (Vue, opts = {}) {
  arr.forEach(component => {
    if (component.name) {
      Vue.component(component.name, component)
    }
  })
}

if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue);
}

export default {
  install
}